Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

httpntlm

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

httpntlm

httpntlm is a Node.js library to do HTTP NTLM authentication

  • 1.8.13
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
375K
decreased by-64.81%
Maintainers
1
Weekly downloads
 
Created

What is httpntlm?

The httpntlm npm package is used to perform HTTP NTLM (NT LAN Manager) authentication. This is particularly useful for interacting with services that require NTLM authentication, such as certain Microsoft services and APIs.

What are httpntlm's main functionalities?

NTLM Authentication

This feature allows you to perform a GET request with NTLM authentication. You need to provide the URL, username, password, workstation, and domain.

const httpntlm = require('httpntlm');

httpntlm.get({
    url: 'https://example.com/api',
    username: 'yourUsername',
    password: 'yourPassword',
    workstation: 'yourWorkstation',
    domain: 'yourDomain'
}, function (err, res) {
    if (err) return console.log(err);
    console.log(res.headers);
    console.log(res.body);
});

POST Request with NTLM Authentication

This feature allows you to perform a POST request with NTLM authentication. You need to provide the URL, username, password, workstation, domain, request body, and headers.

const httpntlm = require('httpntlm');

httpntlm.post({
    url: 'https://example.com/api',
    username: 'yourUsername',
    password: 'yourPassword',
    workstation: 'yourWorkstation',
    domain: 'yourDomain',
    body: '<xml>yourData</xml>',
    headers: {
        'Content-Type': 'application/xml'
    }
}, function (err, res) {
    if (err) return console.log(err);
    console.log(res.headers);
    console.log(res.body);
});

Other packages similar to httpntlm

FAQs

Package last updated on 14 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc